package com.health.model;

import java.sql.Timestamp;
/**
 * 血压实体类
 * */
public class BloodPressure {
	private String id;
	private String userId;				//relate user's id
	private int low;
	private int high;
	private Timestamp examTime;			//the time user examing
	private String remarks;		
	
	//search condition
	private int low1;		//低压下限
	private int low2;		//低压上限
	private int high1;		//高压下限
	private int high2;		//高压上限
	private Timestamp examTimeStart;		//examTime scope
	private Timestamp examTimeEnd;			//examTime scope
	private String userName;	//relate to "_user"'s "name"
	
	
	/**
	 * constructors 
	 * */
	public BloodPressure() {
		
	}
	/**
	 * constructors 
	 * */
	public BloodPressure(String id, String userId, int low, int high, Timestamp examTime, String remarks) {
		this.id = id;
		this.userId = userId;
		this.low = low;
		this.high = high;
		this.examTime = examTime;
		this.remarks = remarks;
	}    
	
	
	@Override
	public String toString() {
		return id + " " + userId + " " + low + " " + high + " " + examTime + " " + remarks + "   userName--" + userName;
	}

	
	/**
	 * getters and setters
	 * */
	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getUserId() {
		return userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}

	public int getLow() {
		return low;
	}

	public void setLow(int low) {
		this.low = low;
	}

	public int getHigh() {
		return high;
	}

	public void setHigh(int high) {
		this.high = high;
	}

	public Timestamp getExamTime() {
		return examTime;
	}

	public void setExamTime(Timestamp examTime) {
		this.examTime = examTime;
	}

	public String getRemarks() {
		return remarks;
	}

	public void setRemarks(String remarks) {
		this.remarks = remarks;
	}

	public int getLow1() {
		return low1;
	}

	public void setLow1(int low1) {
		this.low1 = low1;
	}

	public int getLow2() {
		return low2;
	}

	public void setLow2(int low2) {
		this.low2 = low2;
	}

	public int getHigh1() {
		return high1;
	}

	public void setHigh1(int high1) {
		this.high1 = high1;
	}

	public int getHigh2() {
		return high2;
	}

	public void setHigh2(int high2) {
		this.high2 = high2;
	}

	public Timestamp getExamTimeStart() {
		return examTimeStart;
	}

	public void setExamTimeStart(Timestamp examTimeStart) {
		this.examTimeStart = examTimeStart;
	}

	public Timestamp getExamTimeEnd() {
		return examTimeEnd;
	}

	public void setExamTimeEnd(Timestamp examTimeEnd) {
		this.examTimeEnd = examTimeEnd;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	} 
	

}
